//
//  OpenShare+Weixin.h
//  openshare
//
//  Created by LiuLogan on 15/5/18.
//  Copyright (c) 2015年 OpenShare <http://openshare.gfzj.us/>. All rights reserved.
//

#import "OpenShare.h"
#if __has_include(<WXApi.h>)
#import "OpenShareweChatSDK.h"
#import <WXApiObject.h>
#else
#endif
@class OpenShareweChatSDK;
@interface OpenShare (Weixin)
+(void)connectWeixinWithAppId:(NSString *)appId miniAppId:(NSString *)miniAppId appSecret:(NSString *)appSecret;
+(BOOL)isWeixinInstalled;
#if __has_include(<WXApi.h>)
+(OpenShareweChatSDK *)getWeChatSdk;
+(void)WeixinPay:(PayReq *)payReq Success:(paySuccess)success Fail:(payFail)fail;
#else
+(void)WeixinPay:(NSString*)link Success:(paySuccess)success Fail:(payFail)fail;
#endif
+(void)shareToWeixinSession:(OSMessage*)msg Success:(shareSuccess)success Fail:(shareFail)fail;
+(void)shareToWeixinTimeline:(OSMessage*)msg Success:(shareSuccess)success Fail:(shareFail)fail;
+(void)shareToWeixinFavorite:(OSMessage*)msg Success:(shareSuccess)success Fail:(shareFail)fail;
//shiSDK的话 success 返回的就是用户信息了{@"openid": @"",@"nickname":@"",@"headimgurl":@"",@"userInfo":@1};
+(void)WeixinAuth:(NSString*)scope Success:(authSuccess)success Fail:(authFail)fail;

@end
